﻿<Window x:Class="Blackbird.Editors.NewItemWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:src="clr-namespace:Blackbird.Editors"
        Title="{Binding Path=ItemType, ElementName=NewItemWindowInst, Mode=OneWay}" Height="150" Width="300"
        Name="NewItemWindowInst">
  <Window.Resources>
    <src:NameLabelConverter x:Key="NameLabelConverter" />
  </Window.Resources>
  <Grid>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="100px" />
      <ColumnDefinition />
    </Grid.ColumnDefinitions>
    <Grid.RowDefinitions>
      <RowDefinition />
      <RowDefinition Height="40px" />
    </Grid.RowDefinitions>
    <TextBlock
Text="{Binding Path=ItemType, ElementName=NewItemWindowInst, Converter={StaticResource NameLabelConverter}}"
VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5px" />
    <TextBox Name="NameTextBox" Grid.Column="1"
             Text="{Binding Path=ItemName, ElementName=NewItemWindowInst, Mode=TwoWay}" VerticalAlignment="Center" />
    <StackPanel Grid.Row="2" Grid.Column="1" Orientation="Horizontal" HorizontalAlignment="Right">
      <Button Name="OkButton" Content="OK" Style="{StaticResource PaperButtonStyle}" Click="OkButtonClick" />
      <Button Name="CancelButton" Content="Cancel" Style="{StaticResource PaperButtonStyle}" Click="CancelButtonClick" />
    </StackPanel>
  </Grid>
</Window>